package com.lmk.homework.work02;

public class MyRectangle extends GeometricObject{
    public MyRectangle(String color, double weight, double weight1, double height) {
        super(color, weight);
        this.weight = weight1;
        this.height = height;
    }

    private double weight;
    private  double height;

    @Override
    public double getWeight() {
        return weight;
    }

    @Override
    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double findArea(){
       return(double) weight * height;
    }
    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
    public boolean equals(double a,double b){
        if(a==b);
        return false;
    }
}
